//
//  CityResidencePermitWaitTableViewCell.m
//  Jyxt
//
//  Created by 宫璞 on 2017/8/18.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import "ResidencePermitWaitTableViewCell.h"

@interface ResidencePermitWaitTableViewCell()
@property (nonatomic, strong)UILabel *nameLabel;
@property (nonatomic, strong)UILabel *timeLabel;

@end

@implementation ResidencePermitWaitTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 0, self.contentView.frame.size.width/3, 60)];
        self.nameLabel.numberOfLines = 0;
        self.nameLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.nameLabel];
        
        self.timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.contentView.frame.size.width/3+15, 15, self.contentView.frame.size.width/2, 30)];
        self.timeLabel.textAlignment = NSTextAlignmentCenter;
        self.timeLabel.textColor = LKColorMake(201, 201, 201, 1);
        self.timeLabel.font = [UIFont systemFontOfSize:13];
        [self addSubview:self.timeLabel];
        
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.nameLabel.text = self.valueDic[@"name"];  
    self.timeLabel.text = [self.valueDic[@"applyTime"] substringToIndex:16];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
